<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <script>
        function surprise(){
            alert("hello world")
        }
    </script>

    <script src="01JS.js"></script>

</head>
<body>
    <!-- 内部脚本引入 -->
    <button onclick="surprise()">点击</button>
    <!-- 外部脚本引入 -->
    <button onclick="hello()">点击</button>
</body>
</html>